namespace Sundry.DAL.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class AddMenu : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.AdminMenus",
                c => new
                    {
                        AdminMenuId = c.Int(nullable: false, identity: true),
                        ParentMenuId = c.Int(nullable: false),
                        MenuName = c.String(),
                        MenuActionUrl = c.String(),
                        IsShow = c.Int(nullable: false),
                        IsAdmin = c.Int(nullable: false),
                        IsStoreAdmin = c.Int(nullable: false),
                        AdminOrderNum = c.Int(nullable: false),
                        StoreOrderNum = c.Int(nullable: false),
                        MenuLevel = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.AdminMenuId);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.AdminMenus");
        }
    }
}
